﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8" />
    <title>Led: StateForge::Examples::Led::Led Class Reference</title>
    <link href="/Content/Help.css" rel="stylesheet" type="text/css" />
    <link href="/Content/css/tabs.css" rel="stylesheet" type="text/css" />
    <link href="/Content/css/doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <div id="header">
        <img id="logo" alt="StateForge" src="/Content/Images/StateForgeLogo.png" />
        <div id="title">
            <h1>
                C# examples using state machines generated by StateBuilderDotNet
            </h1>
            <h3>
                Led: StateForge::Examples::Led::Led Class Reference
            </h3>
        </div>
        <div id="menucontainer">
            <ul id="menu">
                <li><a href="/">Home</a></li>
                <li><a href="/Home/Download">Downloads</a></li>
                <li><a href="/Help/state-machine-tools.aspx">Help</a></li>
                <li><a href="/Home/Faq">F.A.Q</a></li>
                <li><a href="/Home/About">Contact us</a></li>
            </ul>
        </div>
    </div>
<!-- Generated by Doxygen 1.7.4 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespace_state_forge.html">StateForge</a>      </li>
      <li class="navelem"><a class="el" href="namespace_state_forge_1_1_examples.html">Examples</a>      </li>
      <li class="navelem"><a class="el" href="namespace_state_forge_1_1_examples_1_1_led.html">Led</a>      </li>
      <li class="navelem"><a class="el" href="class_state_forge_1_1_examples_1_1_led_1_1_led.html">Led</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a>  </div>
  <div class="headertitle">
<div class="title">StateForge::Examples::Led::Led Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="StateForge::Examples::Led::Led" -->
<p><a href="class_state_forge_1_1_examples_1_1_led_1_1_led-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_led_1_1_led.html#a926b3be7979cb98dfb5115f0d4deb003">Led</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_led_1_1_led.html#aad3fca38e4cbbc8859b8107a6eb3d590">On</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_led_1_1_led.html#a812f688eea43666bd17ffa3947c34094">Off</a> ()</td></tr>
<tr><td colspan="2"><h2><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">internal void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_led_1_1_led.html#a977d28ee2898670215cfa14313867390">DoOn</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">internal void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_led_1_1_led.html#a31aa039024c2a44fed7ee377dd787514">DoOff</a> ()</td></tr>
<tr><td colspan="2"><h2><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">LedContext&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_led_1_1_led.html#a1352001c0a1c099c9ae6d35342cf1178">context</a></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock">
<p>Definition at line <a class="el" href="_led_8cs_source.html#l00007">7</a> of file <a class="el" href="_led_8cs_source.html">Led.cs</a>.</p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a926b3be7979cb98dfb5115f0d4deb003"></a><!-- doxytag: member="StateForge::Examples::Led::Led::Led" ref="a926b3be7979cb98dfb5115f0d4deb003" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">StateForge::Examples::Led::Led::Led </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_led_8cs_source.html#l00011">11</a> of file <a class="el" href="_led_8cs_source.html">Led.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_led_1_1_led.html#a1352001c0a1c099c9ae6d35342cf1178">context</a> = <span class="keyword">new</span> LedContext(<span class="keyword">this</span>);
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_led_1_1_led.html#a1352001c0a1c099c9ae6d35342cf1178">context</a>.Observer = ObserverConsole.Instance;
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_led_1_1_led.html#a1352001c0a1c099c9ae6d35342cf1178">context</a>.EnterInitialState();
        }
</pre></div>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a31aa039024c2a44fed7ee377dd787514"></a><!-- doxytag: member="StateForge::Examples::Led::Led::DoOff" ref="a31aa039024c2a44fed7ee377dd787514" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">internal void StateForge::Examples::Led::Led::DoOff </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline, protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_led_8cs_source.html#l00041">41</a> of file <a class="el" href="_led_8cs_source.html">Led.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            Console.WriteLine(<span class="stringliteral">&quot;DoOff&quot;</span>);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a977d28ee2898670215cfa14313867390"></a><!-- doxytag: member="StateForge::Examples::Led::Led::DoOn" ref="a977d28ee2898670215cfa14313867390" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">internal void StateForge::Examples::Led::Led::DoOn </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline, protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_led_8cs_source.html#l00035">35</a> of file <a class="el" href="_led_8cs_source.html">Led.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            Console.WriteLine(<span class="stringliteral">&quot;DoOn&quot;</span>);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a812f688eea43666bd17ffa3947c34094"></a><!-- doxytag: member="StateForge::Examples::Led::Led::Off" ref="a812f688eea43666bd17ffa3947c34094" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::Led::Led::Off </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_led_8cs_source.html#l00026">26</a> of file <a class="el" href="_led_8cs_source.html">Led.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            <a class="code" href="class_state_forge_1_1_examples_1_1_led_1_1_led.html#a1352001c0a1c099c9ae6d35342cf1178">context</a>.Off();
        }
</pre></div>
</div>
</div>
<a class="anchor" id="aad3fca38e4cbbc8859b8107a6eb3d590"></a><!-- doxytag: member="StateForge::Examples::Led::Led::On" ref="aad3fca38e4cbbc8859b8107a6eb3d590" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::Led::Led::On </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_led_8cs_source.html#l00020">20</a> of file <a class="el" href="_led_8cs_source.html">Led.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            <a class="code" href="class_state_forge_1_1_examples_1_1_led_1_1_led.html#a1352001c0a1c099c9ae6d35342cf1178">context</a>.On();
        }
</pre></div>
</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="a1352001c0a1c099c9ae6d35342cf1178"></a><!-- doxytag: member="StateForge::Examples::Led::Led::context" ref="a1352001c0a1c099c9ae6d35342cf1178" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">LedContext <a class="el" href="class_state_forge_1_1_examples_1_1_led_1_1_led.html#a1352001c0a1c099c9ae6d35342cf1178">StateForge::Examples::Led::Led::context</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_led_8cs_source.html#l00009">9</a> of file <a class="el" href="_led_8cs_source.html">Led.cs</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="_led_8cs_source.html">Led.cs</a></li>
</ul>
</div>
﻿<div id="footer">
    <hr />
    <p>
        Copyright &copy; 2011 StateForge.</p>
    <hr />
</div>
</body> </html> 
